package team.bluepen.order.constant;

import java.io.IOException;
import java.util.Properties;

/**
 * @author RollW
 */
public class Constant {
    public static final String HADOOP_URL;
    static {
        Properties hdfs = new Properties();
        try {
            hdfs.load(Constant.class.getResourceAsStream("/hdfs.properties"));
            HADOOP_URL = hdfs.getProperty("order.hdfs.url");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    /** 记录登录信息的Session ID */
    public static final String SESSION_USER = "session_order_system_user";

    /**最大文件大小限制*/
    public static final long FILE_MAX_SIZE = 10485760;// 10M

    /**上传文件存储目录*/
    public static final String UPLOAD_DIRECTORY = "/order_system/upload";
    public static final String OUTPUT_DIRECTORY = "/order_system/output";
    public static final String TEMP_DIRECTORY = "order_system/temp";

    public static final String SERVER_TEMP_DIRECTORY = "order_system_temp";
    /** 标志字符画*/
    public static final String LOGO_PAINTING = " ______                 ___  __         ___         \n" +
            "/_  __/__ ___ ___ _    / _ )/ /_ _____ / _ \\___ ___ \n" +
            " / / / -_) _ `/  ' \\  / _  / / // / -_) ___/ -_) _ \\\n" +
            "/_/  \\__/\\_,_/_/_/_/ /____/_/\\_,_/\\__/_/   \\__/_//_/\n" +
            "                                                    ";
    /** 宽版本字符画 */
    public static final String LOGO_PAINTING_WIDE = " _________  _______   ________  _____ ______           ________  ___       ___  ___  _______   ________  _______   ________      \n" +
            "|\\___   ___\\\\  ___ \\ |\\   __  \\|\\   _ \\  _   \\        |\\   __  \\|\\  \\     |\\  \\|\\  \\|\\  ___ \\ |\\   __  \\|\\  ___ \\ |\\   ___  \\    \n" +
            "\\|___ \\  \\_\\ \\   __/|\\ \\  \\|\\  \\ \\  \\\\\\__\\ \\  \\       \\ \\  \\|\\ /\\ \\  \\    \\ \\  \\\\\\  \\ \\   __/|\\ \\  \\|\\  \\ \\   __/|\\ \\  \\\\ \\  \\   \n" +
            "     \\ \\  \\ \\ \\  \\_|/_\\ \\   __  \\ \\  \\\\|__| \\  \\       \\ \\   __  \\ \\  \\    \\ \\  \\\\\\  \\ \\  \\_|/_\\ \\   ____\\ \\  \\_|/_\\ \\  \\\\ \\  \\  \n" +
            "      \\ \\  \\ \\ \\  \\_|\\ \\ \\  \\ \\  \\ \\  \\    \\ \\  \\       \\ \\  \\|\\  \\ \\  \\____\\ \\  \\\\\\  \\ \\  \\_|\\ \\ \\  \\___|\\ \\  \\_|\\ \\ \\  \\\\ \\  \\ \n" +
            "       \\ \\__\\ \\ \\_______\\ \\__\\ \\__\\ \\__\\    \\ \\__\\       \\ \\_______\\ \\_______\\ \\_______\\ \\_______\\ \\__\\    \\ \\_______\\ \\__\\\\ \\__\\\n" +
            "        \\|__|  \\|_______|\\|__|\\|__|\\|__|     \\|__|        \\|_______|\\|_______|\\|_______|\\|_______|\\|__|     \\|_______|\\|__| \\|__|\n" +
            "                                                                                                                                 \n" +
            "                                                                                                                                 ";


}
